<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
   function cz(){
     $("#key").val("");
     $("#name").val("");
     $("#desc").text("");
   }
</script>
<style type="text/css">
#t1 tr{
  width: 50px;
  height: 40px;
}
#dd4{
 background-color: ghostwhite;
}
</style>
<div class="pageContent" id="adiv">
	<form  onsubmit="return validateCallback(this,navTabAjaxDone)" action="role/updaterole.do" method="post">
	<input type="hidden" value="${requestScope.role.roleid }" name="roleid"/>
		<div class="pageFormContent" layoutH="56" id="dd4">
		<table class="searchContent" id="t1">
		  <tr>
		    <td>角色名：</td><td><input type="text" name="name" value="${requestScope.role.name }" id="name"/></td>
          </tr>
          <tr>
             <td>简称：</td><td><input type="text" name="short_key" value="${requestScope.role.short_key }" id="key"/></td>
          </tr>
          <tr>
            <td>状态：</td>
            <td><select name="status" style="width: 135px">
            <c:if test="${requestScope.role.status==0}">
            <option value="0">有效</option>
            <option value="1">无效</option>
            </c:if>
            <c:if test="${requestScope.role.status==1}">
              <option value="1">无效</option>
              <option value="0">有效</option>
            </c:if>
            </select></td>
          </tr>
          <tr>
             <td>描述：</td><td><textarea name="description" rows="3" cols="30" id="desc">${requestScope.role.description }</textarea></td>
          </tr>
		</table>
</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="tj()">提交</button></div></div></li>
				<li>
				<div class="button"><div class="buttonContent"><button type="button" onclick="cz()">重置</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
